<?php

namespace app\admin\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * ArticleCate
 * @controllerUrl 'articleCate'
 */
class ArticleCate extends Model
{
    use SoftDelete;
    // 表名
    protected $name = 'article_cate';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

	protected $type = [
		'delete_time' => 'timestamp:Y-m-d H:i:s',
	];


    public function setSwitchAttr($value, $row)
    {
        return $value ? '1' : '0';
    }
}